﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CrusadeGmTool.Models;

namespace CrusadeGmTool.Forms
{
    public partial class QuickServerChoice : Form
    {
        public LoginInfo loginInfos
        {
            get;
            set;
        }

        public QuickServerChoice()
        {
            InitializeComponent();
            loginInfos = new LoginInfo();
        }

        private void btn_connect_Click(object sender, EventArgs e)
        {
          
            this.DialogResult = DialogResult.OK;
            loginInfos.HostAdress = this.tb_adress.Text;
            loginInfos.Username = this.tb_username.Text;
            loginInfos.Password = this.tb_password.Text;
            loginInfos.Port = Convert.ToInt32(this.nm_port.Value);
            this.Close();
        }

        private void QuickServerChoice_Load(object sender, EventArgs e)
        {

        }

    }
}
